import tkinter as tk
from tkinter import  filedialog, messagebox
from datetime import datetime
from PIL import Image, ImageTk
from tkcalendar import DateEntry


from Logic import add_task_func, delete_card_func,create_card_dialog_func,create_card_func,edit_task_func,save_edits_func
from Logic.create_card_dialog import *
from UI.create_main_window import *
frames={}
window=tk.Tk()
def main():

    window.title("To Do List")
    window.geometry("800x600")

    window.wm_minsize(600, 400)  # 添加这行来设置窗口的最小大小
    
    columns=["To_Do","In Progress","Done"]
    for col in columns:
        frame = tk.Frame(window, relief = tk.RAISED, borderwidth = 1)
        frame.pack(side = tk.LEFT, fill = tk.BOTH, expand = True)
        frames[col] = frame
        label = tk.Label(frame, text = col, bg ='lightblue', font =('Arial', 12, 'bold'))
        label.pack(fill = tk.X)

    button = tk.Button(window, text="Create", command = create_card_dialog_func)
    button.pack()


    window.mainloop()

    

if __name__ == "__main__":
    main()
